package com.etc.bean;

import java.util.HashSet;
import java.util.Set;

/**
 * User entity. @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 7344359692542076429L;
	private Integer userId;
	private String email;
	private String password;
	private String regtime;
	private String username;
	private Set accounts = new HashSet(0);
	private Set ordersForPayerId = new HashSet(0);
	private Set ordersForSellerId = new HashSet(0);
	private Set ordersForBuyerId = new HashSet(0);
	private Set userbanks = new HashSet(0);

	// Constructors

	/** default constructor */
	public User() {
	}

	/** full constructor */
	public User(String email, String password, String regtime, String username,
			Set accounts, Set ordersForPayerId, Set ordersForSellerId,
			Set ordersForBuyerId, Set userbanks) {
		this.email = email;
		this.password = password;
		this.regtime = regtime; 
		this.username = username;
		this.accounts = accounts;
		this.ordersForPayerId = ordersForPayerId;
		this.ordersForSellerId = ordersForSellerId;
		this.ordersForBuyerId = ordersForBuyerId;
		this.userbanks = userbanks;
	}

	// Property accessors

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getRegtime() {
		return this.regtime;
	}

	public void setRegtime(String regtime) {
		this.regtime = regtime;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Set getAccounts() {
		return this.accounts;
	}

	public void setAccounts(Set accounts) {
		this.accounts = accounts;
	}

	public Set getOrdersForPayerId() {
		return this.ordersForPayerId;
	}

	public void setOrdersForPayerId(Set ordersForPayerId) {
		this.ordersForPayerId = ordersForPayerId;
	}

	public Set getOrdersForSellerId() {
		return this.ordersForSellerId;
	}

	public void setOrdersForSellerId(Set ordersForSellerId) {
		this.ordersForSellerId = ordersForSellerId;
	}

	public Set getOrdersForBuyerId() {
		return this.ordersForBuyerId;
	}

	public void setOrdersForBuyerId(Set ordersForBuyerId) {
		this.ordersForBuyerId = ordersForBuyerId;
	}

	public Set getUserbanks() {
		return this.userbanks;
	}

	public void setUserbanks(Set userbanks) {
		this.userbanks = userbanks;
	}

}